package com.bwie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bwie.pojo.Volume;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface VolumeMapper extends BaseMapper<Volume> {

    @Select("select v.*,u.username,(v.volume_journey_price - v.volume_price) as jiage from volume as v left join  user as u on v.user_id = u.id")
    List<Volume> volumeList();
}
